/*
 * @Author: xiaosihan 
 * @Date: 2024-07-29 12:22:45 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-08-14 10:43:08
 */

import express from "express";
import database from "../database";
import ServiceBase from "./ServiceBase";

// 用户相关的服务
class UserService extends ServiceBase {

    add_user = async (req: express.Request, res: express.Response, next: express.NextFunction) => {
        // const { phone } = this.getParame(req);
        // const [user, created] = await database.user.findOrCreate({ where: { phone }, defaults: { phone } });
        // this.success(res, {
        //     msg: `add_user,${created ? "创建了新的用户" : "没有创建新的用户"}`,
        //     data: user.dataValues,
        // });
    }

    get_user = async () => {
        // const userlist = await UserService.testUser.findAll();
    }

}

const userService = new UserService();
export default userService;